import { ADD_TO_CART, ADD_COUNT } from "./mutation_typs"
const mutations = {
    [ADD_TO_CART](state, payload) {
        state.cartList.push(payload)
    },
    [ADD_COUNT](state, index) {
        state.cartList[index].count += 1
    }
}

export default mutations
